var obj = {
  name: "frank",
  foo: function () {
    console.log(this);
  },
};

var bar = obj.foo;
bar();
obj.foo();
